/**
 * 路由懒加载，按需加载
 */
const Home = () => import(/**webpackChunkName="login"*/'@/views/home/index.vue');
const Login = () => import('@/views/login/index.vue');
const routes = [
    {
        path: '/',
        redirect: '/login',
    },
    {
        path: '/home',
        component: Home,
        meta: {layout:"MainLayout"}
    },
    {
        path: '/login',
        component: Login,
        meta: { nologin: true }
    },


]
export default routes;